﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Kunde/WebsiteCustomer.Master" AutoEventWireup="true" CodeBehind="Abonnement.aspx.cs" Inherits="TireService.Website.Kunde.Abonnement" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">

<!-- Modal popup when waiting on server postback -->
<script src="../Scripts/ModalPopup.js" type="text/javascript"></script>

<h3>Abonnementer</h3>
    
    <asp:UpdatePanel ID="upEditSubscription" runat="server">
        <ContentTemplate>

            <dxwgv:ASPxGridView ID="gvCustomerSubscription" runat="server" ClientInstanceName="gvCustomerSubscription" 
                KeyFieldName="SubscriptionId" AutoGenerateColumns="False" EnableCallBacks="False" 
                oncustomunboundcolumndata="gvCustomerSubscription_CustomUnboundColumnData">
                <SettingsLoadingPanel Text="Henter&amp;hellip;" />
                <SettingsText EmptyDataRow="Ingen abonnementer" />
                <SettingsPager AlwaysShowPager="False" PageSize="10" Position="Bottom">
                    <Summary 
                        AllPagesText="Sider: {0} - {1} ({2} abonnementer)" 
                        Text="Side {0} af {1} ({2} abonnementer)" />
                </SettingsPager>
                <SettingsText ConfirmDelete="Vil du slette dette abonnement?" />
                <SettingsBehavior ConfirmDelete="True" AllowGroup="true" AllowDragDrop="true" />
                <Columns>
                    <dxwgv:GridViewDataHyperLinkColumn FieldName="CustomerSubscriptionId" VisibleIndex="3" Caption="Opsig" Visible="false">
                        <PropertiesHyperLinkEdit NavigateUrlFormatString="~/Reports/View/Opsigelse.aspx?CustomerSubscriptionId={0}" Target="_blank" Text="Opsig" >
                        </PropertiesHyperLinkEdit>
                    </dxwgv:GridViewDataHyperLinkColumn>
                    <dxwgv:GridViewDataHyperLinkColumn FieldName="CustomerSubscriptionId" VisibleIndex="3" Caption="Abonnement bevis">
                        <PropertiesHyperLinkEdit NavigateUrlFormatString="~/Reports/View/AbonnementBevis.aspx?CustomerSubscriptionId={0}" Target="_blank" Text="Abonnement bevis" >
                        </PropertiesHyperLinkEdit>
                    </dxwgv:GridViewDataHyperLinkColumn>
                    <dxwgv:GridViewDataColumn FieldName="SubscriptionId" Visible="false" VisibleIndex="4" Caption="SubscriptionId">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="SubscriptionDescription" VisibleIndex="5" UnboundType="String" Caption="Abonnement">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataColumn FieldName="Price" VisibleIndex="8" Caption="Pris">
                    </dxwgv:GridViewDataColumn>
                    <%-- <dxwgv:GridViewDataColumn FieldName="CurrencyCodeValue" VisibleIndex="9" UnboundType="String" Caption="Valuta">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="CurrencyId" VisibleIndex="10" Visible="false" Caption="CurrencyId">
                    </dxwgv:GridViewDataColumn>--%>
                    <dxwgv:GridViewDataColumn FieldName="Createdate" VisibleIndex="12" Caption="Oprettelsesdato">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="LastRenewalDate" VisibleIndex="13" Caption="Sidst fornyet">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="NextRenewalDate" VisibleIndex="14" Caption="Næste fornyelse">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="InActive" VisibleIndex="15" Caption="Deaktiveret">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="InActiveDate" VisibleIndex="16" Caption="Deaktiveringsdato">
                    </dxwgv:GridViewDataColumn>
                </Columns>                                            
            </dxwgv:ASPxGridView>

        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>
